package com.ant.backstage.facade.exception;

import com.ant.backstage.facade.code.ApiReturnCode;

public class ValidatedException extends BaseBusinessException {
    private static final long serialVersionUID = 1L;

    public ValidatedException(String msg, String code, Exception ex, String jsonContent) {
        super(msg, code, ex, jsonContent);
    }

    public ValidatedException(String msg, String code, String jsonContent) {
        super(msg, code, jsonContent);
    }

    public ValidatedException(String msg, String code) {
        super(msg, code);
    }

    public ValidatedException(ApiReturnCode apiReturnCode) {
        this(apiReturnCode.getMessage(), apiReturnCode.getCode());
    }

}
